<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<form class="form-horizontal row">
    <div class="col-sm-11">
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">单位名称：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.name}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">单位代码：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.code}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">单位地址：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.address}</p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">单位性质：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.property==0}">企业</c:when>
                        <c:when test="${data.property==1}">机关</c:when>
                        <c:when test="${data.property==2}">事业单位</c:when>
                        <c:when test="${data.property==3}">社会团体</c:when>
                        <c:when test="${data.property==4}">其他</c:when>
                    </c:choose>
                </p>

            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">联系方式：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.phone}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">所属机构：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.affiliate}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">所属机构代码：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    ${data.affiliateCode}
                </p>
            </div>
        </div>
    </div>
<shiro:hasPermission name="expertInfo:adminEdit:edit">

<div class="col-sm-1">
        <button style="margin-left:-5px" type="button" id="btn_update_expertCompany_data" class="btn btn-default"><span
                class="glyphicon glyphicon-edit"></span> 修改
        </button>
    </div>
    </shiro:hasPermission>
</form>


<script>

    $("#btn_update_expertCompany_data").click(function () {
        $('#modal_ajax').modal({
            backdrop: 'static',
            keyboard: false,
            show: true,
            remote: 'expertInfo/adminEdit/expertCompany/editDlg?expertId=${data.expertId}&id=${data.id}'
        });
    });
</script>

